package com.iyundao.io.Service;

import com.github.pagehelper.PageInfo;
import com.iyundao.io.model.ActivityModel;
import com.iyundao.io.model.ActivityModelLookBack;
import com.iyundao.io.model.PartyMember;
import com.iyundao.io.tools.ActivityModelVo;
import com.iyundao.io.tools.PartyMemberShow;
import com.iyundao.io.tools.PartymemberVo;
import com.iyundao.io.tools.ResponseData;

import java.util.List;

public interface ActivityService {

    ResponseData insert(ActivityModel activityModel);

    ResponseData selectById(Integer id);

    PageInfo<ActivityModelVo> selectAllByOrganizationId(Integer pagenum, Integer pagesize, String organizationid);

    PageInfo<ActivityModelVo> findByOrganizationIdAndFlag(Integer pagenum, Integer pagesize, String organizationid, Integer activityflag);

    ResponseData updateFlag(Integer activityflag, Integer id);

    ResponseData joinPeople(Integer[] array, Integer activityid);

    Integer selectLastId();

    List<PartymemberVo> selectAllJoinByActivityId(Integer activityid);

    PageInfo<ActivityModelVo> selectByLike(Integer pagenum, Integer pagesize, String s);

    PageInfo<ActivityModelVo> selectByLikeAndSid(Integer pagenum, Integer pagesize, String s);

    PageInfo<ActivityModelVo> selectLookBackByLikeAndSid(Integer pagenum, Integer pagesize, String s);

    ResponseData selectAllImageById(Integer id);

    PageInfo<ActivityModelVo> selectByUserId(Integer pagenum, Integer pagesize, String sid);

    ResponseData selectShowById(Integer id);

    PageInfo<ActivityModelVo> selectAll(Integer pagenum, Integer pagesize);

    PageInfo<ActivityModelVo> selectAllBy(Integer pagenum, Integer pagesize, String organizationid);

    PageInfo<ActivityModelVo> selectAllLookBack(Integer pagenum, Integer pagesize);

    PageInfo<ActivityModelVo> selectAllLookBackBySid(Integer pagenum, Integer pagesize);

    ResponseData insertLookBack(ActivityModelLookBack activityModelLookBack);

    ResponseData updateLookBackFlag(Integer id);

    ResponseData updateActivity(ActivityModel activityModel);

    ResponseData updatePeople(Integer[] array, Integer activityid);

    ResponseData updateActivityLookBack(ActivityModelLookBack activityModel);

    ResponseData selectLookBackById(Integer id);

    PageInfo<ActivityModelVo> selectAllByLike(Integer pagenum, Integer pagesize, String activityTitle);

    PageInfo<ActivityModelVo> selectAllLooKBackByLike(Integer pagenum, Integer pagesize, String activityTitle);

    ResponseData deleteActivity(Integer id);

    ResponseData deleteActivityLookBack(Integer id);

}
